import request from '@/utils/request'
// 获取员工的简单列表
export function getEmployeeSimple() {
  return request({
    url: `/sys/user/simple`
  })
}
// 新增部门
export function addDepts(data) {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}

// 根据id删除部门
export function delDepts(id) {
  return request({
    url: `/company/department/${id}`,
    method: 'delete'
  })
}

// 获取员工列表
export function getEmployee(params) {
  return request({
    url: `/sys/user`,
    params
  })
}
